package cloud.xlh.my_system.event;

import cloud.xlh.my_system.dynamic_env_refresh.CacheData;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.util.concurrent.ConcurrentHashMap;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/3/21 14:25
 * @ Description: 服务调用变化事件
 */
@ToString
@Getter
@Setter
public class ServiceCallChangeEvent extends ApplicationEvent {

    private String changeServiceStr;

    private ConcurrentHashMap<String, CacheData> cacheMap;

    public ServiceCallChangeEvent(Object source , String changeServiceStr , ConcurrentHashMap<String, CacheData> cacheMap) {
        super(source);
        this.changeServiceStr = changeServiceStr;
        this.cacheMap = cacheMap;
    }
}
